package cn.hchaojie.camp.javafx.controls;

import java.util.ArrayList;
import java.util.List;

public class Group {
	private String name;
	private List<Contact> contacts = new ArrayList<>();
	
	public Group() {}
	
	public Group(String name) {
		this.name = name;
	}

	public Group(String name, List<Contact> contacts) {
		this.name = name;
		this.contacts = contacts;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<Contact> getContacts() {
		return contacts;
	}

	public void setContacts(List<Contact> contacts) {
		this.contacts = contacts;
	}

	@Override
	public String toString() {
		return this.name;
	}
}
